package com.smartfactory.sail.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.smartfactory.sail.entity.enums.DeviceStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 设备信息
 * </p>
 *
 * @author 王巨壁
 * @since 2019-07-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Device对象", description="设备信息")
public class Device implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "设备编码")
    @TableField("deviceCode")
    private String deviceCode;

    @ApiModelProperty(value = "设备型号")
    @TableField("deviceModel")
    private String deviceModel;

    @ApiModelProperty(value = "维护保养次数")
    @TableField("maintenanceCount")
    private Integer maintenanceCount;


    @ApiModelProperty(value = "设备名称")
    @TableField("deviceName")
    private String deviceName;

    @ApiModelProperty(value = "设备类别")
    @TableField("deviceType")
    private String deviceType;

    @ApiModelProperty(value = "生产日期")
    @TableField("productionDate")
    private String productionDate;

    @ApiModelProperty(value = "购置日期")
    @TableField("acquiredDate")
    private String acquiredDate;

    @ApiModelProperty(value = "下次保养日期")
    @TableField("nextMaintenanceDate")
    private String nextMaintenanceDate;

    @ApiModelProperty(value = "设备状态 0：工作中，1：待工作，2：维护中")
    @TableField("deviceStatus")
    private DeviceStatusEnum deviceStatus;

    @ApiModelProperty(value = "保养周期/天")
    @TableField("maintenanceCycle")
    private Integer maintenanceCycle;

    @ApiModelProperty(value = "设备寿命/年")
    @TableField("deviceLife")
    private Integer deviceLife;

    @ApiModelProperty(value = "设备图片 多个用|拼接")
    @TableField("devicePics")
    private String devicePics;

    @ApiModelProperty(value = "创建人")
    @TableField("createUser")
    private String createUser;

    @ApiModelProperty(value = "创建时间")
    @TableField("createTime")
    private String createTime;

    @ApiModelProperty(value = "修改人")
    @TableField("updateUser")
    private String updateUser;

    @ApiModelProperty(value = "修改时间")
    @TableField("updateTime")
    private String updateTime;


}
